package com.crowdfunding.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.crowdfunding.entity.BackRecordCrowdFunding;
import com.crowdfunding.mapper.BackRecordCrowdFundingMapper;
import com.crowdfunding.service.IBackRecordCrowdFundingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaoyu
 * @since 2021-07-15
 */

@Service
public class BackRecordCrowdFundingServiceImpl extends ServiceImpl<BackRecordCrowdFundingMapper, BackRecordCrowdFunding> implements IBackRecordCrowdFundingService {

    @Autowired
    BackRecordCrowdFundingMapper backRecordCrowdFundingMapper;

    @Override
    public List<BackRecordCrowdFunding> getBackRecordCrowdFundingList(String cfId) {
        return backRecordCrowdFundingMapper.selectList(new QueryWrapper<BackRecordCrowdFunding>().eq("cf_id",cfId));
    }
}
